package com.my.study.designPatterns.statePattern;

public class SoldOutState extends State {

    private GumballMachine gumballMachine;

    public SoldOutState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {

        System.out.println("Sorry, out of gumballs");
    }

    @Override
    public void rejectQuarter() {

        System.out.println("No gumballs, please wait");
    }

    @Override
    public void turnCrank() {
        System.out.println("No gumballs, cannot turn crank");
    }

    @Override
    public void dispense() {

        System.out.println("No gumballs, cannot dispense");
    }
}
